////
////  Router_Web.swift
////  TodayNews
////
////  Created by ZhangBo on 2019/6/17.
////  Copyright © 2019 ZhangBo. All rights reserved.
////
//
//import UIKit
//
//enum R_Web {
//    case webShow(RRWebParam)
//    case interactiveWeb(InteractiveWebParam)
//}
//
//extension R_Web: RouterPathable {
//
//    var any: AnyClass {
//        switch self {
//        case .webShow:
//            return RRWebShowVC.self
//        case .interactiveWeb:
//            return InteractiveWebVC.self
//        }
//    }
//    var params: RouterParameter? {
//        switch self {
//        case .webShow(let param):
//            return ["webParam": param]
//        case .interactiveWeb(let param):
//            return ["webParam": param]
//        }
//    }
//}
//
//
//struct RRWebParam {
//    var urlStr: String
//    var request: URLRequest?
//
//    var title = ""
//    var needNav = true
//    var needShare = false
//
//    init(urlStr: String, title: String = "") {
//        self.urlStr = urlStr
//        self.title = title
//        self.request = nil
//    }
//
//    init(request: URLRequest) {
//        self.request = request
//        self.urlStr = ""
//    }
//}
//
//struct InteractiveWebParam {
//    var urlStr: String
//    var title = ""
//    var source = ""
//    var needShare = false
//
//    init(urlStr: String, source: String = "", title: String = "", needShare: Bool = false) {
//        self.urlStr = urlStr
//        self.title = title
//        self.needShare = needShare
//    }
//}
